import { getInfo, setInfo } from '@/utils/storage'
export default {
    namespaced: true,
    state() {
        return {
            userInfo: getInfo(),
        }
    },
    mutations: {
        // 设置用户信息
        setUser(state, obj) {
            state.userInfo = obj
            setInfo(obj)
        }
    },
    actions: {

    },
    getters: {

    }

}